package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.PayCustomerOrderDetail
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.chainStore.pojo.vo.pay.CustomerOrderDetailShowRuleResultVo
import com.yl.chainStore.pojo.vo.pay.PayCustomerOrderDetailSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 订单明细表 Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-07-10
 */
@Mapper
interface PayCustomerOrderDetailMapper : BaseMapper<PayCustomerOrderDetail> {


	/**
	 * 获取订单的明细列表(如果用自带的查，就会出现返回的牙位是对象，不是字符串，会出问题)
	 */
	fun getOrderDetail(@Param("orderId") orderId: Long): MutableList<PayCustomerOrderDetail>

	/**
	 * 获取客户服务项目列表
	 */
	fun getDetailList(@Param("vo") vo: PayCustomerOrderDetailSelectVo): MutableList<PayCustomerOrderDetail>

	/**
	 * 获取客户订单明细 - 显示方式
	 *
	 */
	fun getCustomerOrderDetailShowRule(
		@Param("customerId") customerId: Long,
		@Param("subCompanyId") subCompanyId: Long
	): List<CustomerOrderDetailShowRuleResultVo>
}
